'use strict';

import Base from './base.js';

export default class extends Base {
    /**
     * index action
     * @return {Promise} []
     */
    async indexAction() {

        let userInfo = await this.session('userInfo');
        if (!think.isEmpty(userInfo)) {
            return this.redirect('/admin/index');
        } else {
            return this.display();
        }
    }
}